﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WAD.WEB.AppCode
{
    /// <summary>
    /// 返回Code与Message
    /// </summary>
    public class Message
    {
        /// <summary>
        /// 返回代码
        /// </summary>
        public static class Code
        {
            public const int SUCCESS = 0;
            public const int FAIL = 1;
            public const int PARAM_ERROR = 2;
            public const int SYSTEM_ERROR = 3;
            public const int DATA_EMPTY = 4;
            public const int IS_LOGOUT = 5;
            public const int IS_FREEZE = 6;
            public const int OTHER_LOGIN = 7;
            public const int NO_PERMISSION = 8;
            public const int FILE_SIZE_ERROR = 9;

            public const int USER_EXIST = 1000;
            public const int PHONE_EXIST = 1001;
            public const int EMAIL_EXIST = 1002;
            public const int ERROR_NAME = 1003;
            public const int ERROR_PWD = 1004;
            public const int ERROR_STATE = 1005;
            public const int ERROR_EMAIL = 1006;
            public const int FORGET_LOGIN_QQ = 1007;
            public const int FORGET_LOGIN_WX = 1008;
            public const int FORGET_SUCCESS = 1009;
            public const int ERROR_SMS_CODE = 1010;
            public const int NO_PHONE = 1011;
            public const int NO_VALIDATE_PHONE = 1012;

            public const int IS_COLLECT = 2000;

        }

        /// <summary>
        /// 返回消息
        /// </summary>
        public static class Msg
        {
            public const String SUCCESS = "成功";
            public const String FAIL = "操作失败";
            public const String PARAM_ERROR = "参数错误";
            public const String SYSTEM_ERROR = "系统错误";
            public const String DATA_EMPTY = "没有数据";
            public const String IS_LOGOUT = "没有登录";
            public const String IS_FREEZE = "账户被冻结";
            public const String OTHER_LOGIN = "账号在其他地方登录";
            public const String NO_PERMISSION = "非法访问";
            public const String FILE_SIZE_ERROR = "文件大小不能超过5M";

            public const String USER_EXIST = "用户名已经存在";
            public const String PHONE_EXIST = "该手机号已经注册";
            public const String EMAIL_EXIST = "该邮箱已经注册";
            public const String ERROR_NAME = "不存在该用户";
            public const String ERROR_PWD = "密码不正确";
            public const String ERROR_STATE = "该账户已被禁用";
            public const String ERROR_EMAIL = "邮箱不正确";//找回密码时用到
            public const String FORGET_LOGIN_QQ = "但三方登录,无需找回密码,请使用QQ登录";
            public const String FORGET_LOGIN_WX = "但三方登录,无需找回密码,请使用微信登录";
            public const String FORGET_SUCCESS = "您的密码已经重置,请注意查收!";
            public const String ERROR_SMS_CODE = "验证码不正确";
            public const String NO_PHONE = "该手机号未注册";
            public const String NO_VALIDATE_PHONE = "该手机号为验证通过";

            public const String IS_COLLECT = "您已经收藏了该篇文章";
        }
    }
}